<template>
  <div class="wraphotsell">
    <header>24小时热销</header>
    <ul>
      <li>
        <img :src="img" alt />
        <p>Cleaning家务系列干湿两用抹布 (50片)</p>
        <div>
          <span>活动</span>
          <span>￥49.9</span>
        </div>
      </li>
      <li>
        <img :src="img" alt />
        <p>Cleaning家务系列干湿两用抹布 (50片)</p>
        <div>
          <span>活动</span>
          <span>￥49.9</span>
        </div>
      </li>
      <li>
        <img :src="img" alt />
        <p>Cleaning家务系列干湿两用抹布 (50片)</p>
        <div>
          <span>活动</span>
          <span>￥49.9</span>
        </div>
      </li>
      <li>
        <img :src="img" alt />
        <p>Cleaning家务系列干湿两用抹布 (50片)</p>
        <div>
          <span>活动</span>
          <span>￥49.9</span>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
import img from "@/assets/image/cartlist.png";
export default {
  data() {
    return {
      img: img,
    };
  },
};
</script>

<style lang="stylus" scoped>
.wraphotsell{
  margin-bottom 100px
}
header {
  height: 48px;
  width: 100%;
  padding-left: 14px;
  line-height: 48px;
  font-size: 13px;
  font-weight: bold;
  background: #fff;
  margin-bottom: 1px;
  z-index 0
}

ul {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  li {
    height: 242px;
    width: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 14px;

    &::after {
      content: '';
      width: 100%;
      height: 1px;
      background: #f4f4f4;
      position: absolute;
      left: 0;
      bottom: 0;
      display: block;
    }

    img {
      height: 136px;
      width: 102px;
      margin-left: 28px;
      margin-top: 19px;
    }

    p {
      margin-top: 33px;
      font-size: 11px;
    }

    div {
      margin-top: 13px;
      display: flex;
      font-size: 11px;

      span:nth-child(1) {
        font-size: 8px;
        height: 13.3px;
        width: 26px;
        background: #BA2640;
        color: white;
        margin-right: 13px;
        text-align: center;
        line-height: 13.3px;
      }
    }
  }

  li:nth-child(2n) {
    &::before {
      content: '';
      height: 100%;
      width: 1px;
      background: #f4f4f4;
      position: absolute;
      left: 0;
      top: 0;
      display: block;
    }
  }
}
</style>